package top.lvkun.order.service;

import top.lvkun.basic.service.IBaseService;
import top.lvkun.basic.utils.AjaxResult;
import top.lvkun.order.domain.AdoptOrder;
import top.lvkun.pay.domain.PayBill;

public interface IAdoptOrderService extends IBaseService<AdoptOrder>{

    /**
     * 前台用户：领养宠物提交订单
     * @param adoptOrder
     * @return
     */
    AjaxResult submitAdoptOrder(AdoptOrder adoptOrder);

    /**
     * 取消订单
     * @param adoptOrder
     * @param payBill
     */
    void cancelOrder(AdoptOrder adoptOrder, PayBill payBill);
}
